package com.ymttest.database.sqlwapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtFundStrategyDimension;
/************************************************************************************
 * @File name : YmtProductsIWapper.java
 * @Author : 徐洁伟
 * @Date : 2016年6月28日
 * @Copyright : 洋码头
 * 商品合库 新库
 ************************************************************************************/
public class YmtFundStrategyDimensionWapper {
	SqlManager manage;

	public YmtFundStrategyDimensionWapper() {
		manage = new SqlManager("ymtfp");
	}

	//查询
	public List<YmtFundStrategyDimension> selectstrategydimension(String strategyId) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<YmtFundStrategyDimension>  strategydimensionlist = manage.getSelectResults(
	            "com.ymttest.database.mapping.YmtFPMapper.selectstrategydimension", strategyId);
	    manage.commit();
	    return strategydimensionlist;
	}
	
	
	public static void main(String args[]) {
	    try {
	         
	    	YmtFundStrategyDimensionWapper ymtFundStrategyDimensionWapper = new YmtFundStrategyDimensionWapper();	                 
	        List<YmtFundStrategyDimension> rm = ymtFundStrategyDimensionWapper.selectstrategydimension("40fdf38e-bda6-4c0b-a5af-6e0a27d7ff42");
	        Logger.debug(rm.get(0).getStrategyDimensionId());
	        Logger.debug(rm.get(1).getStrategyDimensionId());
	    		         
	    } catch (InterruptedException e) {
	        e.printStackTrace();
	    }
	}
	
}
